package com.wjq.demo.schedule;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.UUID;

/**
 * @author wjq
 * @since 2023-01-03
 */
@Component
public class MySchedule {

    @Scheduled(fixedDelay = 1000, initialDelay = 1000)
    public void test() {
        System.out.println("this is a test");
    }

    public static void main(String[] args) {


        for (int i=0;i<10;i++) {
            String replace = UUID.randomUUID().toString().replace("-", "");
            System.out.println(replace);
        }
    }
}
